Klasse DefaultProfile

java.lang.Object
com.inet.pdfc.config.DefaultProfile
Alle implementierten Schnittstellen:
IProfile, Serializable
Bekannte direkte Unterklassen:
SourceProfile

@JsonData public class DefaultProfile extends Object implements IProfile
The class contains the default i-net PDFC profile.
Seit:
4.0
Siehe auch:
  • Konstruktordetails

    • DefaultProfile

      public DefaultProfile()
      Default constructor with empty properties
      Seit:
      4.0
    • DefaultProfile

      public DefaultProfile(IProfile sourceProfile)
      Creates a new profile as copy of another profile
      Parameter:
      sourceProfile - the config to copy from, must not be null
      Seit:
      4.0
  • Methodendetails

    • addProfileChangeListener

      public void addProfileChangeListener(DefaultProfile.ProfileChangeListener l)
      Adds a listener to be notified if a profile value changed
      Parameter:
      l - the listener to be added
      Seit:
      3.0
    • removeProfileChangeListener

      public void removeProfileChangeListener(DefaultProfile.ProfileChangeListener l)
      Removes a listener to be no more notified
      Parameter:
      l - the listener to be removed
      Seit:
      3.0
    • getBool

      public boolean getBool(String propertyName)
      Returns the value of the specified PDFCProperty as a boolean. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getBool in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      Gibt zurück:
      the value as a boolean
      Seit:
      1.08
    • getInt

      public int getInt(String propertyName)
      Returns the value of the specified PDFCProperty as an int. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getInt in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      Gibt zurück:
      the value as an integer
      Seit:
      1.08
    • getDouble

      public double getDouble(String propertyName)
      Returns the value of the specified PDFCProperty as a double. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getDouble in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      Gibt zurück:
      the value as a double
      Seit:
      1.08
    • getObject

      public Object getObject(String propertyName)
      Returns the value of the specified PDFCProperty as an Object. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getObject in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      Gibt zurück:
      the value as a Object
      My be null if there is no value for the key and the key does not provide a default value.
      Seit:
      1.08
    • getString

      public String getString(String propertyName)
      Returns the value of the specified PDFCProperty as a String. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getString in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      Gibt zurück:
      the value as a String
      never null, but may be empty
      Seit:
      1.08
    • putValue

      public void putValue(PDFCProperty<?> property, String value)
      Stores a property in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance.
      Angegeben von:
      putValue in Schnittstelle IProfile
      Parameter:
      property - the property to be stored
      value - the value of the property
    • putValue

      public void putValue(String propertyName, String value)
      Stores a property in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance.
      Angegeben von:
      putValue in Schnittstelle IProfile
      Parameter:
      propertyName - the name of the property to get the value for
      value - the value of the property, must not be null
    • putValues

      public void putValues(Properties values)
      Stores all properties in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance. Change events will only be fired for values that have changed.
      Angegeben von:
      putValues in Schnittstelle IProfile
      Parameter:
      values - the instance of values
    • getProperties

      public Properties getProperties()
      Returns set of properties defined in this configuration
      Gibt zurück:
      the profile properties
      Seit:
      1.0
    • getObject

      public Object getObject(PDFCProperty<?> property)
      Returns the value of the specified PDFCProperty as an Object. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getObject in Schnittstelle IProfile
      Parameter:
      property - the property to get the value for
      Gibt zurück:
      the value as an Object
      My be null if there is no value for the key and the key does not provide a default value.
      Seit:
      1.0
    • getString

      public String getString(PDFCProperty<?> property)
      Returns the value of the specified PDFCProperty as a String. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getString in Schnittstelle IProfile
      Parameter:
      property - the property to get the value for
      Gibt zurück:
      the value as a String
      never null, but may be empty
      Seit:
      1.0
    • getInt

      public int getInt(PDFCProperty<?> property)
      Returns the value of the specified PDFCProperty as an int. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getInt in Schnittstelle IProfile
      Parameter:
      property - the property to get the value for
      Gibt zurück:
      the value as integer
      Seit:
      1.0
    • getDouble

      public double getDouble(PDFCProperty<?> property)
      Returns the value of the specified PDFCProperty as a double. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getDouble in Schnittstelle IProfile
      Parameter:
      property - the property to get the value for
      Gibt zurück:
      the value as a double
      Seit:
      1.0
    • getBool

      public boolean getBool(PDFCProperty<?> property)
      Returns the value of the specified PDFCProperty as a boolean. If it was not specified in the configuration file, the default value will be returned.
      Angegeben von:
      getBool in Schnittstelle IProfile
      Parameter:
      property - the property to get the value for
      Gibt zurück:
      the value as a boolean.
      Seit:
      1.0